package com.ffapp.demo.map.cluster;

import com.amap.api.maps.model.LatLng;
import com.ffapp.demo.bean.DeviceListData;
import com.ffapp.demo.bean.Troubleshoots;
import com.ffapp.demo.bean.WarnMapData;

/**
 * Created by yiyi.qi on 16/10/10.
 */

public class RegionItem implements ClusterItem {
    private LatLng mLatLng;
    private String mTitle;
    private Troubleshoots troubleshoots;
    private WarnMapData warnMap;
    private DeviceListData deviceListData;

    public RegionItem(LatLng latLng, String title) {
        mLatLng=latLng;
        mTitle=title;
    }

    public RegionItem(LatLng latLng, String title,Troubleshoots trouble) {
        mLatLng=latLng;
        mTitle=title;
        troubleshoots=trouble;
    }

    public RegionItem(LatLng latLng, String title,WarnMapData warnMapData) {
        mLatLng=latLng;
        mTitle=title;
        warnMap=warnMapData;
    }

    @Override
    public LatLng getPosition() {
        // TODO Auto-generated method stub
        return mLatLng;
    }

    @Override
    public Troubleshoots getTroubleshoots() {
        return troubleshoots;
    }

    @Override
    public WarnMapData getWarnMapData() {
        return warnMap;
    }


    public String getTitle(){
        return mTitle;
    }


}
